package com.company;

public class ITest {

    public static void main(String[] args) {

        //初始化客户、服务员、厨师
        Client wang = new Client();
        Waitress zhang = new Waitress();
        Chef chef = new Chef();
        //初始化菜单
        Order order = new Order();
        order.customer = wang;          //设置了该菜单的顾客
        order.id = 100;
        order.mealList = "水煮鱼";
        //顾客wang选中zhang服务员给自已服务
        wang.Order(zhang, order);
        //服务员将菜单信息告知厨师chef
        zhang.SendOrder(chef);
        //厨师根据菜单做菜
        chef.Cook();
        chef.SendAlert(zhang);
        zhang.TransCook();


    }

}
